package order

import (
	"github.com/astaxie/beego/orm"
)

type MyOrder struct {
	Id       int
	Order_id int
}

func (n *MyOrder) Addorder(order_id int) int64 {
	o := orm.NewOrm()
	var order MyOrder
	order.Order_id = order_id

	if id, err := o.Insert(&order); err == nil {
		return id
	}
	return 0

}
